import admin from './admin'
// import ParentView from 'views/Layout/ParentView'
import Layout from 'views/Layout/Layout'
const routes = [
  {
    path: '/admin',
    redirect: '/admin/index',
    component: Layout,
    meta: {name: '管理后台'},
    children: admin
  },
  {
    path: '/',
    redirect: '/login'
  },
  {
    path: '/login',
    name: 'Login',
    component: () => import('views/Login/Login')
  },
  {
    path: '/404',
    name: '404',
    component: () => import('views/404/404')
  },
  {
    path: '*',
    redirect: '/404'
  }
]

export default routes
